package com.thread.test.volatileTest;

/**
 * @author huang
 * @version 0.0.1
 * @apiNote TODO
 * @since 2021/6/11 14:41
 **/
public class ThreadSafeInteger {

    private int val;

    public synchronized int getVal() {
        return val;
    }

    public synchronized void setVal(int val) {
        this.val = val;
    }


}
